﻿<TreeSelect TItem="string" TItemValue="string"
            EnableSearch
			Style="width:100%;"
			@bind-Value="value"
            DropdownStyle="max-height:400px;overflow:auto;"
			Placeholder="Please select"
			AllowClear
			Multiple
            SuffixIcon="icon"
			TreeDefaultExpandAll>
	<TreeNode TItem="string" Key="parent 1" Title="parent 1">
		<TreeNode TItem="string" Key="parent 1-0" Title="parent 1-0">
			<TreeNode TItem="string" Key="leaf1" Title="my leaf" />
			<TreeNode TItem="string" Key="leaf2" Title="your leaf" />
		</TreeNode>
		<TreeNode TItem="string" Key="parent 1-1" Title="parent 1-1">
			<TreeNode TItem="string" Key="sss">
				<TitleTemplate>
					<b style=" color: #08c;">sss</b>
				</TitleTemplate>
			</TreeNode>
		</TreeNode>
	</TreeNode>
</TreeSelect>

@code {

  private string value;
  private RenderFragment icon =@<Icon Type="@IconType.Outline.Smile" />;
}